package org.example.Problem;

public class B {
    public int minSpeedOnTime(int[] dist, int[] ta) {
        for(int i=0;i< dist.length;i++){
            if(dist[i]!=ta[i]) return dist[i];
        }
        return -1;
    }
}
